package com.bulletelc.apollopre.module.main.center.collection;

import com.bulletelc.apollopre.entity.CollectionBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * Created by CX on 2018/1/25.
 */

public class CollectionContract {

    interface View extends IView {
        void onSuccessCollectionsList(List<CollectionBean> collections);
        void onFailCollectionsList(String fail);
        void onErrorCollectionsList(String error);

        void onSuccessRemove(int position);
        void onFailRemove(String fail);
        void onErrorRemove(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getCollectionsList();
        void removeItem(String collectionId, int position);
    }


}
